<?php
include_once './Url.class.php';
$obj = new Url();

$id = $_GET['id'];

$url = $obj->getUrl($id);

header('Location:'.$url,302);